﻿<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="MasterPageIframeComparison.aspx.cs" Inherits="HZ.Supervise.Web.Master.MasterPageIframeComparison" %>

<%@ Register Src="UserSiteMapPath.ascx" TagName="UserSiteMapPath" TagPrefix="uc1" %>
<%@ Register Assembly="System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35" Namespace="System.Web.UI" TagPrefix="asp" %>
<%@ Register src="../Common/WebUserArea.ascx" tagname="WebUserArea" tagprefix="uc2" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" 

"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head id="Head1" runat="server">
    <meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
    <title>监管系统</title>
    <link  rel="stylesheet" type="text/css" href="../Style/s-type.css" />

    <script type="text/javascript" src="../scripts/My97DatePicker/WdatePicker.js"></script>

    <script type="text/javascript" src="../scripts/Common.js"></script>

    <script type="text/javascript" src="../scripts/global.js"></script>

    <script type="text/javascript" src="../scripts/PCASClass.js"></script>

    <script type="text/javascript" src="../scripts/jquery.js"></script>

    <script type="text/javascript" src="../scripts/mainlistSelect.js"></script>
    
        <script src="../scripts/DynaForm.js" type="text/javascript"></script>
    
    <script src="../scripts/GenUtils.js" type="text/javascript"></script>

        <style type="text/css">
        .style2
        {
            width: 105px;
        }
    </style>
    
   <script type="text/javascript">
       function display() {
           document.getElementById("divSort").style.display = "none";
           document.getElementById("divrdo").style.display = "block";     
         if (document.getElementById("RadioButtonList1_0").checked == false)        
           {
               document.getElementById("divHos").style.display = "none";
               document.getElementById("divArea").style.display = "block"
           } 
           else
           {
           document.getElementById("divHos").style.display = "block";
           document.getElementById("divArea").style.display = "none"
           }
       }

       function insertHosInfo(hos) 
       {
           var varhosInfo = hos.split('|');
       document.getElementById("HidHosId").value = varhosInfo[1];
       document.getElementById("txtHosName").value = varhosInfo[0];
   }
   
   
   function insertSortInfo(sotr) {
       var varhosInfo = sotr.split('|');
       document.getElementById("HidSortId").value = varhosInfo[1];
       document.getElementById("txtSortName").value = varhosInfo[0];
   }

       function insertAreaInfo(area) {
           var varhosInfo = area.split('|');
           document.getElementById("HidAreaId").value = varhosInfo[1];
           document.getElementById("txtAreaName").value = varhosInfo[0];
     }
     function seturl1(hosid,timefrom,timeto,sid) {//更改iframe内容
         $("#ifmain").attr("src", "../Secondphase/Comparison/ComparisonByHospital.aspx?Hid=" + encodeURI(hosid) + "&timefrom=" + encodeURI(timefrom) + "&timeto=" + encodeURI(timeto) + "&sid=" + encodeURI(sid));
     }
     function seturl2(areaid, timefrom, timeto, sid) {//更改iframe内容
         $("#ifmain").attr("src", "../Secondphase/Comparison/ComparisonByArea.aspx?Aid=" + encodeURI(areaid) + "&timefrom=" + encodeURI(timefrom) + "&timeto=" + encodeURI(timeto) + "&sid=" + encodeURI(sid));
     }
     function seturl3(timefrom,timeto,sid) {//更改iframe内容
         $("#ifmain").attr("src", "../Secondphase/Comparison/ComparisonByDefault.aspx?timefrom=" + encodeURI(timefrom) + "&timeto=" + encodeURI(timeto) + "&sid=" + encodeURI(sid));
     }
     function logout() {
         if (confirm("确定要退出系统吗？")) {
             location.replace("../Common/logout.aspx");
         }
     }
   </script>
  
</head>

<body>
    <form id="form1" runat="server">
    <div id="container">
    <div id="s-top">
            <div id="s-head">
                <div id="s-logo">
                    <img src="../lib/images/second_logo.gif" />
                    <div id="s-p">您好：欢迎使用监管系统！<br />
                    <a href="#">[网站主页]</a> <a href="javascript:void(0);" onclick="CallFunc('../Admin/PasswordUpdate.aspx','FORM',null);">[修改密码]</a> 
                    <a href="javascript:void(0);" onclick="javascript:logout();return false;">[注销退出]</a> 
                 </div>                    
                </div>
                <div id="s-add">
                    <ul>
                     <li><a href="../Master/MasterPageIframeArea_New.aspx">
                            <img src="../lib/images/s-add-zx2.gif" /></a> </li>
                        <li><a href="../Master/MasterPageIframeStatistics.aspx">
                            <img src="../lib/images/s-add-bb.gif" /></a></li>
                        <li><a href="../Master/MasterPageIframeHospital.aspx">
                            <img src="../lib/images/s-add-yy.gif" /></a></li>
                        <li><a href="../Master/MasterPageIframeCompany.aspx">
                            <img src="../lib/images/s-add-qy.gif" /></a></li>
                        <li><a href="../Master/MasterPageIframeArea.aspx">
                            <img src="../lib/images/s-add-dq.gif" /></a></li>
                        <li><a href="../Master/MasterPageIframeSort.aspx">
                            <img src="../lib/images/s-add-lb.gif" /></a></li>
                       <li><a href="../Default.aspx" target="_self">
                            <img src="../lib/images/s-add-zdy.gif" /></a></li>
                        <li><a href="../Master/MasterPageIframeComparison.aspx">
                            <img src="../lib/images/s-add-db.gif" /></a></li>
                    </ul>
                </div>
            </div>
<%--            <div id="s-hello">
                <div id="s-hello-l">
                    您好：欢迎使用监管系统！</div>
                <div id="s-hello-r">
                    <ul>
                        <li><a href="#">[网站主页]</a></li>
                        <li><a href="javascript:void(0);" onclick="CallFunc('../Admin/PasswordUpdate.aspx','FORM',null);">
                            [修改密码]</a></li>
                        <li><a href="javascript:void(0);" onclick="javascript:logout();return false;">[注销退出]</a></li>
                    </ul>
                </div>
            </div>--%>
        </div>
        <div id="s-center">
        
    <div id="s-left">
        <div style="text-align:center">
                            <div id="s-nav">
                        <ul class="c">
                            <li class="s-title"><span class="v">
                                <img src="../lib/images/s-img1.gif" />设置对比</span>
                                </li>
                        </ul>
                    </div>

                   <asp:RadioButtonList ID="RadioButtonList1" runat="server" Width="154px" 
                CellPadding="1" CellSpacing="1" Height="28px" RepeatDirection="Horizontal" onclick="display();">
                    <asp:ListItem Value="1" Text="医院对比"></asp:ListItem>
                    <asp:ListItem Value="2" Text="地区对比"></asp:ListItem>
                    </asp:RadioButtonList>
        </div>
        
        
        <div id="divHos" style="display:none">
           <table width="100%">
            <tr><td class="style2">要对比医院:</td><td align=right>
                <input type="button" id="btnHos"  value="选择医院" class="btn" onclick="window.open('/Common/FindAllHospital.aspx','123','width=800,height=450,resizable=0,scrollbars=0, status=0, toolbar=0, menubar=0')" /></td></tr>

           
            <tr><td colspan="2">
               <input id="HidHosId" type="hidden" name="HidHosId" runat="server"  />
                <asp:TextBox ID="txtHosName" runat="server" Height="259px" TextMode="MultiLine" 
                    Width="192px"></asp:TextBox>
                </td></tr>
           
           </table> 
        
        </div>
        
        <div id="divArea" style="display:none">
        <table width="100%">
            <tr><td class="style3">要对比地区:</td><td align=right>
                <input type="button" ID="btnArea" runat="server" value="选择地区" class="btn" onclick="window.open('/Common/FindAllArea.aspx','123','width=800,height=450,resizable=0,scrollbars=0, status=0, toolbar=0, menubar=0')" /></td></tr>
            <tr><td colspan="2">
                <input id="HidAreaId" type="hidden" name="HidAreaId" runat="server" />
                <asp:TextBox ID="txtAreaName" runat="server" Height="259px" TextMode="MultiLine" 
                    Width="192px" ReadOnly="True"></asp:TextBox>
                </td></tr>
           </table>
        </div>
        
        
      
        <table width="100%">
        <tr>
        <td align="right">时间从：</td><td>
            <asp:TextBox ID="txtTimeFrom" runat="server" Width="105px"  onFocus="WdatePicker({dateFmt:'yyyy-MM-dd '})"></asp:TextBox>
            </td>
        </tr>
        <tr>
        <td align="right">到：</td><td>
            <asp:TextBox ID="txtTimeTo" runat="server" Width="106px"  onFocus="WdatePicker({dateFmt:'yyyy-MM-dd '})"></asp:TextBox>
            </td>
        </tr>
         </table>
         
         
        <div id="divrdo" style="display:none">
          <table  width="100%">
            <tr>
                <td class="style1">选择对比类型:</td>
                <td><asp:DropDownList ID="droSort" runat="server" Height="20px" 
                Width="110px">
            </asp:DropDownList></td>
            </tr>
            </table>
        </div>
        
            
        <div id="divSort"> 
        <table width="100%">
        <tr><td class="style3">要对比类型:</td><td align=right>
            <input type="button" ID="Button1" runat="server" value="选择类型" class="btn" onclick="window.open('/Common/FindAllSort.aspx','123','width=800,height=450,resizable=0,scrollbars=0, status=0, toolbar=0, menubar=0')" /></td></tr>
        <tr><td colspan="2">
            <input id="HidSortId" type="hidden" name="HidSortId" runat="server" />
            <asp:TextBox ID="txtSortName" runat="server" Height="77px" TextMode="MultiLine" 
                Width="192px" ReadOnly="True"></asp:TextBox>
            </td></tr>
            </table>
        </div>
            
        <table>
            <tr>
                <td class="style1"></td>
                <td align="right"><asp:Button ID="Button2" runat="server" Text="对比" CssClass="btn" 
                 SkinID="search"    Width="77px" onclick="Button2_Click" /></td>
            </tr>
        </table>
            
            
        
    </div>
    
    <div id="s-main">
        <iframe id="ifmain" name="mainWorkArea" src="../lib/images/xsd.jpg" 
width="100%" height="500px"   scrolling="yes"  frameborder="0"></iframe>
        
    </div>
    </div>
        <div id="s-bottom">
            江苏华招网信息技术有限公司 技术支持
        </div>    
        </div>
    </form>
</body>
</html>
